OPENING QUESTION: Please demo your code to your team
OBJECTIVES:
- I will write code to insert an item to my array during today's class.
- I will write code to append an item to my array during today's class.
- I will write code to remove an item from my array during today's class.
CALENDAR:
HELP FILES: I redid (?) the help video for using the APP Lab debugger, it is on our class slide deck and also HERE
WORK O' THE DAY:
═══════════════════════════
At this point you should be very comfortable iterating through your arrays.
Today we're going to work on manipulating the elements (items) inside the array. Two of those commands (insert & append) seem to be much the same.
They are NOT. Please have a conversation to COMPARE and then CONTRAST those two terms in how they effect your array.
═══════════════════════════
Let's try-- load this code into a new app and compare it to THIS
Now remix your code and make a version that allows your user to
-
insert an item to your array after they have added the initial 20 characters
-
Remix your code again and create a version that allows your user to append an item to your array after they have added the initial 20 characters
-
Remix your code again and create a version that allows your user to remove an item to your array after they have added the initial 20 characters